package com.zh.freechat.domain.message.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.webcommon.common.auditor.mp.SimpleEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 聊天关系PO
 */
@Getter
@Setter
@TableName(value = "ch_chat_relation", autoResultMap = true)
public class ChatRelationPO extends SimpleEntity {

    /**
     * ID
     * 手动赋值
     */
    @TableId(type = IdType.INPUT)
    private String id;

    private String user1;

    private String user2;

    private LocalDateTime lastTime;

    public ChatRelationPO() {
    }
}
